<script setup lang="ts">
import { Document, Download, Film } from '@element-plus/icons-vue'
</script>

<template>
  <div id="main-video">
    <div>
      <h2>
        <slot name="title"></slot>
      </h2>
      <div class="info-area">
        <p>
          发布者:
          <slot name="publisher"></slot>
        </p>
        <p style="margin-left: 15px">
          <slot name="createTime"></slot>
        </p>
      </div>
    </div>
    <div class="operation-area">
      <div class="operation">
        <slot name="watch"></slot>
      </div>
      <div class="operation">
        <slot name="download"></slot>
      </div>
      <div class="operation">
        <slot name="delete"></slot>
      </div>
    </div>
  </div>
</template>

<style scoped>
#main-video {
  margin: 20px;
  padding: 10px;
  //box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  line-height: 2.5em;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  justify-content: space-between;
  border-radius: 10px;
  background-color: white;
}

.info-area {
  flex: 1;
  display: flex;
  justify-content: space-between;
}

.operation-area {
  display: flex;
}

.operation {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 50px;
  font-size: 16px;
  align-items: center;
}

.operation:nth-child(1) :hover {
  color: skyblue;
}

.operation:nth-child(2) :hover {
  color: skyblue;
}

.operation:nth-child(3) :hover {
  color: skyblue;
}
</style>
